/**
 * Copyright (c) Enalean, 2016. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

.has-sidebar {
    padding: $navbar-height 0 0 $sidebar-expanded-width;
}

.sidebar-collapsed {
    padding: $navbar-height 0 0 $sidebar-collapsed-width;

    .sidebar {
        width: $sidebar-collapsed-width;
    }

    .project-sidebar-nav-item-icon {
        margin: 0;
        font-size: 18px;

        + span {
            display: none;
        }
    }
}

.sidebar-fully-collapsed {
    padding: $navbar-height 0 0 $sidebar-fully-collapsed-width;

    .sidebar {
        width: $sidebar-fully-collapsed-width;

        .admin-sidebar-section,
        .scrollbar-track {
            opacity: 0;
            pointer-events: none;
        }
    }

    .sidebar-collapser-bar {
        cursor: e-resize;
    }
}

.sidebar-collapsed,
.sidebar-fully-collapsed {
    #logo {
        width: $sidebar-collapsed-width;
        background: $tlp-theme-color url('../images/organization_logo_small.png') no-repeat center center;
    }

    .project-sidebar-title,
    .sidebar-about {
        display: none;
    }

    .sidebar-collapser-icon::before {
        content: '\f054'; // fa-chevron-right
    }
}
